GO goutil发布了v0.6.4版!更新速览!-天天信息

来源:php中文网 | 2023-02-13 12:01:42 |


(资料图片仅供参考)

本篇文章带大家聊聊GO工具库goutil的最新更新情况,介绍了gookit/goutil Go常用功能的扩展工具库,都包含哪些知识,附更新日志,希望对大家有所帮助!

gookit/goutil Go 常用功能的扩展工具库。包含:数字,字符串,slice/数组,Map ,结构体,反射,文件,错误处理,时间日期,CLI ,命令运行,系统信息,格式化,常用信息获取等等

v0.6.2 到 v0.6.4 更新日志

版本更新日志 github.com/gookit/goutil/releases/...

发布于 2023.02.11 下面是 v0.6.2 到 v0.6.4 的累计更新

Feature

? feat: str - 新增检查方法 ContainsOne, ContainsAll, HasEmpty, IsAllEmpty 等 0e4792a? feat: str/textutil - 支持快速替换给定文本的变量 ecc23cb? feat: sys,proc - 添加和更新一些实用函数 aa78114✨ feat: fs - 添加一些实用函数 NewIOReader,TextScanner,LineScanner,ReadFile,ReadString 等 3352512✨ feat: map, struct - 新增实用函数 structs.ToString(), maputil.Data.Uint() 90af09e✨ feat: stdio - 新增实用函数 NewIOReader, NewScanner ea243d6✨ feat: arr - 新增检查函数 NotIn, In, ContainsAll/IsParent 2a18ca2✨ feat: textutil - 新增函数 IsMatchAll() 快速检查文本是否有关键字 d0dade8✨ feat: math - 新增泛型函数 Max, SwapMax 比较和交换值 176923bfeat: error, test - 新增工具函数 快速断言并返回错误或直接 panic 7188216✨ feat: fs - 新增函数 MkDirs, MkSubDirs 批量创建目录或子目录 c4447cb✨ feat: env,sys - 新增函数 EnvPaths, SearchEnvKeys, SearchEnv 快速获取和搜索环境变量 b3d7669✨ feat: str - 新增函数 IEqual, IContains 忽略大小写检查字符串 746eb35✨ feat: goutil - 新增函数 CallOn, CallOrElse, OrError, OrValue, OrReturn 基于条件运行或返回值 97a2863✨ feat: arr - 新增函数 StringsAsInts, StringsTryInts, ConvType 等快速转换 slice 类型 75d8d89✨ feat: reflects - 新增函数 ConvSlice 通过反射方式转换 slice 类型 f87fc86✨ feat: structs - 初始化结构体 InitDefaults() 新增支持 slice 类型字段 948fa70✨ feat: byte - 新增函数 StrOrErr(), SafeString() 检查并在无错误时转为 string 767ed80✨ feat: cmdr - cmdr.Cmd 新增方法 ToOSStdoutStderr, ToOSStdout 快速设置命令输出到 OS stdout, stderr 6aaea78

Fixed

? fix(env, str): fix the envutil test error and update some str util 2e7aa63? fix(dump): makeslice: cap out of range. fix: #76 4ba9b10? fix: textscan - fix multi inline comments parse error bf68c94

Update

? up: str, math - 新增一些 OrElse() 等快速检测同时获取值的函数 cb21fbc? up: str - update some util func and add more tests a3e07f4? up: str,math - update some util func eaf0990? up: str,byte - add and update some util func cf5d34e? up: byte,cflag - update and add some new tests 6e47f69? up(env, str): 调整 ENV 变量解析逻辑 和新增 strutil.Valid() 5193849? up(str): update some str value get func 676fe4e✨ up(env,sys): 新增 GetMulti, SetEnvMap, UnsetEnvs 等函数 9eaddb5? up(str): 调整 SplitInlineComment() 处理逻辑 31445cd? up(sys): 调整 SearchPath() 逻辑, 支持限制返回结果数 67cbae1✅ up(sys,env,map): add more tests case for util func 392536c? up(fs,sys): update some fs and sys util func run logic 7727628? up(struct): update some structs comments and update readme f461852? up(str): update some string util comments and func 796d1fe

Other

build(deps): bump golang.org/x/text from 0.5.0 to 0.6.0 79d7781doc: re-generate the README docs 42e3084doc: update the doc parse logic, support generic types 030676ddoc: generate and update README docs f342e92build(deps): bump golang.org/x/text from 0.6.0 to 0.7.0 1e3ea77

【相关推荐:Go视频教程】

以上就是GO goutil发布了v0.6.4版!更新速览!的详细内容,更多请关注php中文网其它相关文章!

关键词: Golang